<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>精灵图</title>
  <style>
    .box {
      width: 27px;
      height: 26px;
      /* 精灵图的核心是作为背景 */
      background: url(./img/wz.webp) no-repeat;
    }

    .box1 {
      background-position: 0 -169px;
    }

    .box2 {
      margin: 100px auto;
      background-position: -90px -170px;
    }
  </style>
</head>

<body>
  <div class="box box1"></div>
  <div class="box box2"></div>
</body>

</html>